package com.ruoyi.stock.mapper;

import com.ruoyi.stock.domain.StockMarket;

import java.util.Date;
import java.util.List;

/**
 * 股票行情Mapper接口
 *
 * @author ruoyi
 * @date 2025-08-05
 */
public interface StockMarketMapper {
    /**
     * 查询股票行情
     *
     * @param id 股票行情主键
     * @return 股票行情
     */
    public StockMarket selectStockMarketById(Long id);

    /**
     * 查询股票行情列表
     *
     * @param stockMarket 股票行情
     * @return 股票行情集合
     */
    public List<StockMarket> selectStockMarketList(StockMarket stockMarket);

    /**
     * 新增股票行情
     *
     * @param stockMarket 股票行情
     * @return 结果
     */
    public int insertStockMarket(StockMarket stockMarket);

    /**
     * 修改股票行情
     *
     * @param stockMarket 股票行情
     * @return 结果
     */
    public int updateStockMarket(StockMarket stockMarket);

    /**
     * 删除股票行情
     *
     * @param id 股票行情主键
     * @return 结果
     */
    public int deleteStockMarketById(Long id);

    /**
     * 批量删除股票行情
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStockMarketByIds(Long[] ids);


    void delStockMarketByDate(Date stDate);
}
